package com.geek.gkfgw.facade.abs;

import com.geek.gkdoc.facade.DocField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <h1>请求抽象类。</h1><br/>
 *
 * <h1><br/><a href="https://u.geekbang.org/subject/arch3/100614201">Java 业务架构实战营：https://u.geekbang.org/subject/arch3/100614201</a></h1><br/><h1><a href="https://gitee.com/ylimhhmily/BizArchPracticeCamp">Java 业务架构实战营代码地址：https://gitee.com/ylimhhmily/BizArchPracticeCamp</a></h1><br/><h1><a href="https://u.geekbang.org/subject/java4th/1001148?source=app_share">高级 Java 工程体系课 2023 版：https://u.geekbang.org/subject/java4th/1001148?source=app_share</a></h1><br/><h1><a href="https://time.geekbang.org/column/intro/100312101?tab=catalog">Dubbo 源码剖析与实战：https://time.geekbang.org/column/intro/100312101?tab=catalog</a></h1>
 *
 * @author hmilyylimh
 *         ^_^
 * @version 0.0.1
 *         ^_^
 * @date 2022-02-19
 *
 */
@Setter
@Getter
@ToString
public class AbstractRequest implements Serializable {

    private static final long serialVersionUID = 3237662287996643752L;

    @DocField(desc = "设备号", required = false, sampleVal = "HYF0923", version = "20230901")
    private String deviceId;
    @DocField(desc = "用户IP", required = false, sampleVal = "127.0.0.1", version = "20230901")
    private String loginIp;
    @DocField(desc = "设备类型", required = false, sampleVal = "Android", version = "20230901")
    private String deviceType;

    @DocField(desc = "客户端ID", required = false, sampleVal = "C001", version = "20230901")
    private String clientId;
    @DocField(desc = "应用ID", required = false, sampleVal = "A001", version = "20230901")
    private String appId;

    @DocField(desc = "版本号", extra = "app版本号，如有需求针对版本号做处理的话，可以使用该字段", required = false, sampleVal = "1.0.0", version = "20230901")
    private String version;
}